<?php $ArCustomers = Dracosys::getSessionValue(SESSION_INTERFACE, 'CustomerList'); ?>
<section id="EditFinancialList">
    <h2>Listagem de Clientes</h2>
    <table id="EditFinancialList_customer" class="list">
        <thead>
            <tr>
                <th>Nome</th>
                <th>Email</th>
                <th>Status</th>
                <th>Tipo Cliente</th>
                <th>Plano</th>
                <th>Visualizar</th>
                <th>Editar Dados</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($ArCustomers as $Customer): ?>
                <tr>
                    <td><?= $Customer->getCustomerName() ?></td>
                    <td><?= $Customer->getArGeneralData('StEmail') ?></td>
                    <td><?= $Customer->getArGeneralData('EnStatus') ?></td>
                    <td><?= $Customer->getArGeneralData('EnTipoCliente') ?></td>
                    <td><?= $Customer->getFinanceiro()->getPlano()->getStNome() ?></td>
                    <td>
                        <a href="<?=DRA_URL?>cliente/visualizar-cliente/id/<?=$Customer->getIDCliente()?>">
                            <img src="<?= DRA_VIEW_URL ?>/images/descricao.png" alt="Visualizar" />
                        </a>
                    </td>
                    <td>
                        <a href="<?=DRA_URL?>financeiro/editar-dados-financeiro/id/<?=$Customer->getFinanceiro()->getIDFinanceiro()?>">
                            <img src="<?= DRA_VIEW_URL ?>/images/edit.png" alt="Editar" />
                        </a>
                    </td>
                </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</section>